package com.iman.fetion;

//http://hi.baidu.com/qjgzs/blog/item/1d535013cf72f020dc540169.html
public class test {
	/**
	 * @param args
	 * @throws Exception
	 */
	/**
	 * @param args
	 * @throws Exception
	 */
	/**
	 * @param args
	 * @throws Exception
	 */
	public static void main(String[] args) throws Exception
	{
		
		FetionMessage fetion = new FetionMessage();
		fetion.fetionId = "837204993";
//		fetion.mobile="15900600380";
		fetion.password = "111111a";	
		fetion.getFetionUri();
//	    fetion.getSipcProxy();	
		System.out.println(fetion.fetionUri);
//
//		fetion.FETIONURI = "sip:837204993@fetion.com.cn;p=5907";
//		fetion.FETIONID = "837204993";	
//		fetion.SIPC_PROXY = "221.130.46.144:8080";
//		System.out.println("******************"+fetion.SIPC_PROXY+"*********************");
//		
//		fetion.openSocket();
//		fetion.getNonce();
//		fetion.sendResponse();
//		fetion.subPresence();
		
		
		
		
		
//		fetion.changeNickname("Basin2009");
//		fetion.start();
//		fetion.keepAlive();
		
//		fetion.addBuddy("sip:612612272");
		
		
//		
//		fetion.getContactList();
		
		
//		
//		
//		
//		fetion.sendInvite("sip:612612272@fetion.com.cn;p=3517");
//		fetion.sendAsk("sip:612612272@fetion.com.cn;p=3517");
//		
//		System.out.println("***************************************");
//		fetion.getContactList();
//		System.out.println("***************************************");
//		for(int i=0;i<2;i++){
		
//		fetion.sendMsg("Just a Test","sip:612612272@fetion.com.cn;p=3517" );
//		}
//		fetion.closeSocket();
	}
	
}
